package com.greenleaf.serviceImpl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.greenleaf.dao.CommentDao;
import com.greenleaf.entity.Comment;
import com.greenleaf.entity.SearchCon;
import com.greenleaf.service.CommentService;
@Service("commentService")
public class CommentServiceImpl implements CommentService {
	@Resource
	private CommentDao commentDao;
	@Override
	public List<Comment> getAllComment(SearchCon searchCon) {
		return commentDao.getAllComment(searchCon);
	}
	@Override
	public int getTotalComment(SearchCon searchCon) {
		return commentDao.getTotalComment(searchCon);
	}
	@Override
	public int updateComment(Comment comment) {
		return commentDao.updateComment(comment);
	}
}
